of
Creates a 20x20 textless button widget that opens a config screen based on the mod_id provided
Author
fzzyhmstrs
Since
0.5.7
Parameters
scope
String representation of the config to open. Usually the mod_id for the config
x
Int horizontal position of the widget
y
Int vertical position of the widget
fun of(scope: String, corner: ConfigScreenWidget.Position.Corner, xPadding: Int = 4, yPadding: Int = xPadding): ConfigScreenWidget
Creates a 20x20 textless button widget that opens a config screen based on the mod_id provided
Author
fzzyhmstrs
Since
0.5.7
Parameters
scope
String representation of the config to open. Usually the mod_id for the config
corner
Position.Corner which corner of the screen to anchor the
x Padding
Int - padding in scaled pixels the widget will be away from the specified left/right edge of the screen.
y Padding
Int - padding in scaled pixels the widget will be away from the specified top/bottom edge of the screen.